/**
 * Copyright &copy; 2018-2018 <a href="#">聚成科技</a> All rights reserved.
 */
package com.jckj.core.service;

import com.github.pagehelper.PageInfo;
import com.jckj.core.entity.InspectionItem;
import com.jckj.core.entity.InspectionItemFeedbackAttachmentKey;
import com.jckj.core.entity.InspectionTask;
import com.jckj.core.vos.InspectionTaskQueryVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *     巡查任务服务类
 * </p>
 *
 * @author 刘志远
 * @date 18-1-29
 */
@Service
public interface InspectionTaskService {

    /**
     * 新增巡查任务
     * @param inspectionTask
     */
    void add(InspectionTask inspectionTask);

    /**
     * 修改巡查任务
     * @param inspectionTask
     */

    /**
     * 删除巡查任务
     * @param inspectionTask
     */
    void delete(InspectionTask inspectionTask);

    /**
     * 查询巡查任务
     * @param vo
     * @return
     */
    PageInfo<InspectionTask> queryInspectionTask(InspectionTaskQueryVo vo);

    /**
     * 增加存查项
     * @param inspectionItem
     */
    void addInspectionItem(InspectionItem inspectionItem);

    /**
     * 修改巡查
     * @param inspectionItem
     */
    void updateInspectionItem(InspectionItem inspectionItem);

    /**
     * 删除巡查项
     * @param inspectionItem
     */
    void deleteInspectionItem(InspectionItem inspectionItem);

    /**
     * 反馈巡查任务
     * @param inspectionItem
     * @param attachments
     */
    void addInspectionItemFeedback(InspectionItem inspectionItem, List<InspectionItemFeedbackAttachmentKey> attachments);

    /**
     * 更新反馈信息
     * @param inspectionItem
     * @param attachments
     */
    void updateInspectionItemFeedback(InspectionItem inspectionItem, List<InspectionItemFeedbackAttachmentKey> attachments);


}